<ui:composition template="/WEB-INF/template/layoutPadrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="titulo">Relatórios</ui:define>

	
	<ui:define name="corpo">
		<h:form>
			<h1>Relatórios</h1>
			<p:messages autoUpdate="true" closable="true" />

			<p:toolbar style="margin-top:20px">
				<p:toolbarGroup>					
											
					<p:commandButton value="Emitir Empenho"
						action="#{relatorioEmpenhoBean.emitirEmpenho}" ajax="false" />
						
				</p:toolbarGroup>				
			</p:toolbar>

			<p:panelGrid columns="2" id="painel"
				style="width:100%; margin-top:20px" columnClasses="rotulo, campo">

									
				<p:outputLabel value="Empenho" for="empenho" />
				<p:autoComplete id="empenho" size="30" dropdown="true"
					value="#{relatorioEmpenhoBean.empenho}"
					completeMethod="#{relatorioEmpenhoBean.completarEmpenho}"
					forceSelection="true" var="empenho" itemValue="#{empenho}"
					itemLabel="#{empenho.empenhoNumero}" />
				
							
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>